package cn.stylefeng.guns.modular.household.pojo;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 家庭成员参数类
 *
 * @author lichenhui
 * @date 2024/03/20
 */
@Data
public class HouseholdMemberRequest extends BaseRequest {

    @NotNull(message = "家庭成员ID不能为空", groups = {add.class, edit.class})
    private Long memberId;

    @NotNull(message = "家庭成员姓名不能为空", groups = {add.class, edit.class})
    private String name;

    @NotNull(message = "家庭成员与户主关系不能为空", groups = {add.class, edit.class})
    private String memberType;

    @NotNull(message = "家庭成员身份证号不能为空", groups = {add.class, edit.class})
    private String idCard;

    @NotNull(message = "家庭成员出生日期不能为空", groups = {add.class, edit.class})
    private String birthday;

}
